package com.ang.mybatisplus.sensitive.service.impl;

import com.ang.mybatisplus.sensitive.domain.SensitiveUser;
import com.ang.mybatisplus.sensitive.dto.SensitiveUserDTO;
import com.ang.mybatisplus.sensitive.mapper.SensitiveUserMapper;
import com.ang.mybatisplus.sensitive.service.SensitiveUserService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ssang
 * @since 2022-10-15
 */
@Service
public class SensitiveUserServiceImpl extends ServiceImpl<SensitiveUserMapper, SensitiveUser> implements SensitiveUserService {
    @Resource
    SensitiveUserMapper sensitiveUserMapper;

    @Override
    public List<SensitiveUserDTO> listByDtoReturnDto(SensitiveUserDTO dto) {
        return sensitiveUserMapper.listByDtoReturnDto(dto);
    }

    @Override
    public List<Map> listByMapReturnMap(Map<String, String> map) {
        return sensitiveUserMapper.listByMapReturnMap(map);
    }

    @Override
    public List<SensitiveUser> listByDomainReturnDomain(SensitiveUser sensitiveUser) {
        return sensitiveUserMapper.listByDomainReturnDomain(sensitiveUser);
    }

    @Override
    public List<SensitiveUser> queryXmlDomainPage(SensitiveUser sensitiveUser) {
        return sensitiveUserMapper.queryXmlDomainPage(sensitiveUser);
    }

    @Override
    public IPage queryXmlDomainIPage(Page page, SensitiveUser sensitiveUser) {
        return sensitiveUserMapper.queryXmlDomainIPage(page,sensitiveUser);
    }

}
